package com.oracle.pojo;

import java.util.ArrayList;
import java.util.List;

public class PhReservationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PhReservationExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNoPhetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUnameIsNull() {
            addCriterion("uname is null");
            return (Criteria) this;
        }

        public Criteria andUnameIsNotNull() {
            addCriterion("uname is not null");
            return (Criteria) this;
        }

        public Criteria andUnameEqualTo(String value) {
            addCriterion("uname =", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameNotEqualTo(String value) {
            addCriterion("uname <>", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameGreaterThan(String value) {
            addCriterion("uname >", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameGreaterThanOrEqualTo(String value) {
            addCriterion("uname >=", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameLessThan(String value) {
            addCriterion("uname <", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameLessThanOrEqualTo(String value) {
            addCriterion("uname <=", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameLike(String value) {
            addCriterion("uname like", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameNotLike(String value) {
            addCriterion("uname not like", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameIn(List<String> values) {
            addCriterion("uname in", values, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameNotIn(List<String> values) {
            addCriterion("uname not in", values, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameBetween(String value1, String value2) {
            addCriterion("uname between", value1, value2, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameNoPhetween(String value1, String value2) {
            addCriterion("uname not between", value1, value2, "uname");
            return (Criteria) this;
        }

        public Criteria andUmobileIsNull() {
            addCriterion("umobile is null");
            return (Criteria) this;
        }

        public Criteria andUmobileIsNotNull() {
            addCriterion("umobile is not null");
            return (Criteria) this;
        }

        public Criteria andUmobileEqualTo(Integer value) {
            addCriterion("umobile =", value, "umobile");
            return (Criteria) this;
        }

        public Criteria andUmobileNotEqualTo(Integer value) {
            addCriterion("umobile <>", value, "umobile");
            return (Criteria) this;
        }

        public Criteria andUmobileGreaterThan(Integer value) {
            addCriterion("umobile >", value, "umobile");
            return (Criteria) this;
        }

        public Criteria andUmobileGreaterThanOrEqualTo(Integer value) {
            addCriterion("umobile >=", value, "umobile");
            return (Criteria) this;
        }

        public Criteria andUmobileLessThan(Integer value) {
            addCriterion("umobile <", value, "umobile");
            return (Criteria) this;
        }

        public Criteria andUmobileLessThanOrEqualTo(Integer value) {
            addCriterion("umobile <=", value, "umobile");
            return (Criteria) this;
        }

        public Criteria andUmobileIn(List<Integer> values) {
            addCriterion("umobile in", values, "umobile");
            return (Criteria) this;
        }

        public Criteria andUmobileNotIn(List<Integer> values) {
            addCriterion("umobile not in", values, "umobile");
            return (Criteria) this;
        }

        public Criteria andUmobileBetween(Integer value1, Integer value2) {
            addCriterion("umobile between", value1, value2, "umobile");
            return (Criteria) this;
        }

        public Criteria andUmobileNoPhetween(Integer value1, Integer value2) {
            addCriterion("umobile not between", value1, value2, "umobile");
            return (Criteria) this;
        }

        public Criteria andShoplistIsNull() {
            addCriterion("shoplist is null");
            return (Criteria) this;
        }

        public Criteria andShoplistIsNotNull() {
            addCriterion("shoplist is not null");
            return (Criteria) this;
        }

        public Criteria andShoplistEqualTo(String value) {
            addCriterion("shoplist =", value, "shoplist");
            return (Criteria) this;
        }

        public Criteria andShoplistNotEqualTo(String value) {
            addCriterion("shoplist <>", value, "shoplist");
            return (Criteria) this;
        }

        public Criteria andShoplistGreaterThan(String value) {
            addCriterion("shoplist >", value, "shoplist");
            return (Criteria) this;
        }

        public Criteria andShoplistGreaterThanOrEqualTo(String value) {
            addCriterion("shoplist >=", value, "shoplist");
            return (Criteria) this;
        }

        public Criteria andShoplistLessThan(String value) {
            addCriterion("shoplist <", value, "shoplist");
            return (Criteria) this;
        }

        public Criteria andShoplistLessThanOrEqualTo(String value) {
            addCriterion("shoplist <=", value, "shoplist");
            return (Criteria) this;
        }

        public Criteria andShoplistLike(String value) {
            addCriterion("shoplist like", value, "shoplist");
            return (Criteria) this;
        }

        public Criteria andShoplistNotLike(String value) {
            addCriterion("shoplist not like", value, "shoplist");
            return (Criteria) this;
        }

        public Criteria andShoplistIn(List<String> values) {
            addCriterion("shoplist in", values, "shoplist");
            return (Criteria) this;
        }

        public Criteria andShoplistNotIn(List<String> values) {
            addCriterion("shoplist not in", values, "shoplist");
            return (Criteria) this;
        }

        public Criteria andShoplisPhetween(String value1, String value2) {
            addCriterion("shoplist between", value1, value2, "shoplist");
            return (Criteria) this;
        }

        public Criteria andShoplistNoPhetween(String value1, String value2) {
            addCriterion("shoplist not between", value1, value2, "shoplist");
            return (Criteria) this;
        }

        public Criteria andPtypeidIsNull() {
            addCriterion("ptypeid is null");
            return (Criteria) this;
        }

        public Criteria andPtypeidIsNotNull() {
            addCriterion("ptypeid is not null");
            return (Criteria) this;
        }

        public Criteria andPtypeidEqualTo(Integer value) {
            addCriterion("ptypeid =", value, "ptypeid");
            return (Criteria) this;
        }

        public Criteria andPtypeidNotEqualTo(Integer value) {
            addCriterion("ptypeid <>", value, "ptypeid");
            return (Criteria) this;
        }

        public Criteria andPtypeidGreaterThan(Integer value) {
            addCriterion("ptypeid >", value, "ptypeid");
            return (Criteria) this;
        }

        public Criteria andPtypeidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ptypeid >=", value, "ptypeid");
            return (Criteria) this;
        }

        public Criteria andPtypeidLessThan(Integer value) {
            addCriterion("ptypeid <", value, "ptypeid");
            return (Criteria) this;
        }

        public Criteria andPtypeidLessThanOrEqualTo(Integer value) {
            addCriterion("ptypeid <=", value, "ptypeid");
            return (Criteria) this;
        }

        public Criteria andPtypeidIn(List<Integer> values) {
            addCriterion("ptypeid in", values, "ptypeid");
            return (Criteria) this;
        }

        public Criteria andPtypeidNotIn(List<Integer> values) {
            addCriterion("ptypeid not in", values, "ptypeid");
            return (Criteria) this;
        }

        public Criteria andPtypeidBetween(Integer value1, Integer value2) {
            addCriterion("ptypeid between", value1, value2, "ptypeid");
            return (Criteria) this;
        }

        public Criteria andPtypeidNoPhetween(Integer value1, Integer value2) {
            addCriterion("ptypeid not between", value1, value2, "ptypeid");
            return (Criteria) this;
        }

        public Criteria andPetcolorIsNull() {
            addCriterion("petcolor is null");
            return (Criteria) this;
        }

        public Criteria andPetcolorIsNotNull() {
            addCriterion("petcolor is not null");
            return (Criteria) this;
        }

        public Criteria andPetcolorEqualTo(String value) {
            addCriterion("petcolor =", value, "petcolor");
            return (Criteria) this;
        }

        public Criteria andPetcolorNotEqualTo(String value) {
            addCriterion("petcolor <>", value, "petcolor");
            return (Criteria) this;
        }

        public Criteria andPetcolorGreaterThan(String value) {
            addCriterion("petcolor >", value, "petcolor");
            return (Criteria) this;
        }

        public Criteria andPetcolorGreaterThanOrEqualTo(String value) {
            addCriterion("petcolor >=", value, "petcolor");
            return (Criteria) this;
        }

        public Criteria andPetcolorLessThan(String value) {
            addCriterion("petcolor <", value, "petcolor");
            return (Criteria) this;
        }

        public Criteria andPetcolorLessThanOrEqualTo(String value) {
            addCriterion("petcolor <=", value, "petcolor");
            return (Criteria) this;
        }

        public Criteria andPetcolorLike(String value) {
            addCriterion("petcolor like", value, "petcolor");
            return (Criteria) this;
        }

        public Criteria andPetcolorNotLike(String value) {
            addCriterion("petcolor not like", value, "petcolor");
            return (Criteria) this;
        }

        public Criteria andPetcolorIn(List<String> values) {
            addCriterion("petcolor in", values, "petcolor");
            return (Criteria) this;
        }

        public Criteria andPetcolorNotIn(List<String> values) {
            addCriterion("petcolor not in", values, "petcolor");
            return (Criteria) this;
        }

        public Criteria andPetcolorBetween(String value1, String value2) {
            addCriterion("petcolor between", value1, value2, "petcolor");
            return (Criteria) this;
        }

        public Criteria andPetcolorNoPhetween(String value1, String value2) {
            addCriterion("petcolor not between", value1, value2, "petcolor");
            return (Criteria) this;
        }

        public Criteria andPetweightIsNull() {
            addCriterion("petweight is null");
            return (Criteria) this;
        }

        public Criteria andPetweightIsNotNull() {
            addCriterion("petweight is not null");
            return (Criteria) this;
        }

        public Criteria andPetweightEqualTo(Long value) {
            addCriterion("petweight =", value, "petweight");
            return (Criteria) this;
        }

        public Criteria andPetweightNotEqualTo(Long value) {
            addCriterion("petweight <>", value, "petweight");
            return (Criteria) this;
        }

        public Criteria andPetweightGreaterThan(Long value) {
            addCriterion("petweight >", value, "petweight");
            return (Criteria) this;
        }

        public Criteria andPetweightGreaterThanOrEqualTo(Long value) {
            addCriterion("petweight >=", value, "petweight");
            return (Criteria) this;
        }

        public Criteria andPetweightLessThan(Long value) {
            addCriterion("petweight <", value, "petweight");
            return (Criteria) this;
        }

        public Criteria andPetweightLessThanOrEqualTo(Long value) {
            addCriterion("petweight <=", value, "petweight");
            return (Criteria) this;
        }

        public Criteria andPetweightIn(List<Long> values) {
            addCriterion("petweight in", values, "petweight");
            return (Criteria) this;
        }

        public Criteria andPetweightNotIn(List<Long> values) {
            addCriterion("petweight not in", values, "petweight");
            return (Criteria) this;
        }

        public Criteria andPetweighPhetween(Long value1, Long value2) {
            addCriterion("petweight between", value1, value2, "petweight");
            return (Criteria) this;
        }

        public Criteria andPetweightNoPhetween(Long value1, Long value2) {
            addCriterion("petweight not between", value1, value2, "petweight");
            return (Criteria) this;
        }

        public Criteria andPetageIsNull() {
            addCriterion("petage is null");
            return (Criteria) this;
        }

        public Criteria andPetageIsNotNull() {
            addCriterion("petage is not null");
            return (Criteria) this;
        }

        public Criteria andPetageEqualTo(Integer value) {
            addCriterion("petage =", value, "petage");
            return (Criteria) this;
        }

        public Criteria andPetageNotEqualTo(Integer value) {
            addCriterion("petage <>", value, "petage");
            return (Criteria) this;
        }

        public Criteria andPetageGreaterThan(Integer value) {
            addCriterion("petage >", value, "petage");
            return (Criteria) this;
        }

        public Criteria andPetageGreaterThanOrEqualTo(Integer value) {
            addCriterion("petage >=", value, "petage");
            return (Criteria) this;
        }

        public Criteria andPetageLessThan(Integer value) {
            addCriterion("petage <", value, "petage");
            return (Criteria) this;
        }

        public Criteria andPetageLessThanOrEqualTo(Integer value) {
            addCriterion("petage <=", value, "petage");
            return (Criteria) this;
        }

        public Criteria andPetageIn(List<Integer> values) {
            addCriterion("petage in", values, "petage");
            return (Criteria) this;
        }

        public Criteria andPetageNotIn(List<Integer> values) {
            addCriterion("petage not in", values, "petage");
            return (Criteria) this;
        }

        public Criteria andPetageBetween(Integer value1, Integer value2) {
            addCriterion("petage between", value1, value2, "petage");
            return (Criteria) this;
        }

        public Criteria andPetageNoPhetween(Integer value1, Integer value2) {
            addCriterion("petage not between", value1, value2, "petage");
            return (Criteria) this;
        }

        public Criteria andReservationtimeIsNull() {
            addCriterion("reservationtime is null");
            return (Criteria) this;
        }

        public Criteria andReservationtimeIsNotNull() {
            addCriterion("reservationtime is not null");
            return (Criteria) this;
        }

        public Criteria andReservationtimeEqualTo(String value) {
            addCriterion("reservationtime =", value, "reservationtime");
            return (Criteria) this;
        }

        public Criteria andReservationtimeNotEqualTo(String value) {
            addCriterion("reservationtime <>", value, "reservationtime");
            return (Criteria) this;
        }

        public Criteria andReservationtimeGreaterThan(String value) {
            addCriterion("reservationtime >", value, "reservationtime");
            return (Criteria) this;
        }

        public Criteria andReservationtimeGreaterThanOrEqualTo(String value) {
            addCriterion("reservationtime >=", value, "reservationtime");
            return (Criteria) this;
        }

        public Criteria andReservationtimeLessThan(String value) {
            addCriterion("reservationtime <", value, "reservationtime");
            return (Criteria) this;
        }

        public Criteria andReservationtimeLessThanOrEqualTo(String value) {
            addCriterion("reservationtime <=", value, "reservationtime");
            return (Criteria) this;
        }

        public Criteria andReservationtimeLike(String value) {
            addCriterion("reservationtime like", value, "reservationtime");
            return (Criteria) this;
        }

        public Criteria andReservationtimeNotLike(String value) {
            addCriterion("reservationtime not like", value, "reservationtime");
            return (Criteria) this;
        }

        public Criteria andReservationtimeIn(List<String> values) {
            addCriterion("reservationtime in", values, "reservationtime");
            return (Criteria) this;
        }

        public Criteria andReservationtimeNotIn(List<String> values) {
            addCriterion("reservationtime not in", values, "reservationtime");
            return (Criteria) this;
        }

        public Criteria andReservationtimeBetween(String value1, String value2) {
            addCriterion("reservationtime between", value1, value2, "reservationtime");
            return (Criteria) this;
        }

        public Criteria andReservationtimeNoPhetween(String value1, String value2) {
            addCriterion("reservationtime not between", value1, value2, "reservationtime");
            return (Criteria) this;
        }

        public Criteria andSevertypeIsNull() {
            addCriterion("severtype is null");
            return (Criteria) this;
        }

        public Criteria andSevertypeIsNotNull() {
            addCriterion("severtype is not null");
            return (Criteria) this;
        }

        public Criteria andSevertypeEqualTo(String value) {
            addCriterion("severtype =", value, "severtype");
            return (Criteria) this;
        }

        public Criteria andSevertypeNotEqualTo(String value) {
            addCriterion("severtype <>", value, "severtype");
            return (Criteria) this;
        }

        public Criteria andSevertypeGreaterThan(String value) {
            addCriterion("severtype >", value, "severtype");
            return (Criteria) this;
        }

        public Criteria andSevertypeGreaterThanOrEqualTo(String value) {
            addCriterion("severtype >=", value, "severtype");
            return (Criteria) this;
        }

        public Criteria andSevertypeLessThan(String value) {
            addCriterion("severtype <", value, "severtype");
            return (Criteria) this;
        }

        public Criteria andSevertypeLessThanOrEqualTo(String value) {
            addCriterion("severtype <=", value, "severtype");
            return (Criteria) this;
        }

        public Criteria andSevertypeLike(String value) {
            addCriterion("severtype like", value, "severtype");
            return (Criteria) this;
        }

        public Criteria andSevertypeNotLike(String value) {
            addCriterion("severtype not like", value, "severtype");
            return (Criteria) this;
        }

        public Criteria andSevertypeIn(List<String> values) {
            addCriterion("severtype in", values, "severtype");
            return (Criteria) this;
        }

        public Criteria andSevertypeNotIn(List<String> values) {
            addCriterion("severtype not in", values, "severtype");
            return (Criteria) this;
        }

        public Criteria andSevertypeBetween(String value1, String value2) {
            addCriterion("severtype between", value1, value2, "severtype");
            return (Criteria) this;
        }

        public Criteria andSevertypeNoPhetween(String value1, String value2) {
            addCriterion("severtype not between", value1, value2, "severtype");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNoPhetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNoPhetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andIsdeleteIsNull() {
            addCriterion("isdelete is null");
            return (Criteria) this;
        }

        public Criteria andIsdeleteIsNotNull() {
            addCriterion("isdelete is not null");
            return (Criteria) this;
        }

        public Criteria andIsdeleteEqualTo(Integer value) {
            addCriterion("isdelete =", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteNotEqualTo(Integer value) {
            addCriterion("isdelete <>", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteGreaterThan(Integer value) {
            addCriterion("isdelete >", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteGreaterThanOrEqualTo(Integer value) {
            addCriterion("isdelete >=", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteLessThan(Integer value) {
            addCriterion("isdelete <", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteLessThanOrEqualTo(Integer value) {
            addCriterion("isdelete <=", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteIn(List<Integer> values) {
            addCriterion("isdelete in", values, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteNotIn(List<Integer> values) {
            addCriterion("isdelete not in", values, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteBetween(Integer value1, Integer value2) {
            addCriterion("isdelete between", value1, value2, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteNoPhetween(Integer value1, Integer value2) {
            addCriterion("isdelete not between", value1, value2, "isdelete");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}
